#
# Base settings to include on top of all your settings.py
#

import os, sys, inspect
here = lambda *x: os.path.abspath(os.path.join(os.path.abspath(''), *x))
gettext = lambda s: s

TIME_ZONE = 'Europe/Sofia'
SITE_ID = 1
USE_I18N = True
USE_L10N = True

STATIC_URL = '/static/'

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
#     'django.template.loaders.eggs.Loader',
)

TEMPLATE_CONTEXT_PROCESSORS = (
    "django.contrib.auth.context_processors.auth",
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
    "django.core.context_processors.static",
    "django.contrib.messages.context_processors.messages",
	"d115.context_processors.login",
	"d115.siemes.context_processors.siemes",
)

INSTALLED_APPS = (
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'grappelli',
    'django.contrib.auth',
    'django.contrib.sites',
    'django.contrib.sitemaps',
    'django.contrib.messages',
    'django.contrib.staticfiles',
	'django.contrib.admin',
    'django.contrib.webdesign',
    'django.contrib.humanize',
	'django_extensions',
    'south',
	'pagination',
	'd115',
    'd115.siemes',
	'registration',
	'contact_form',
    'mptt',
)

SKIP_SOUTH_TESTS = True
SOUTH_AUTO_FREEZE_APP = True

SERVER_EMAIL = 'Django Admin <djangoadmin@mlke.net>'
DEFAULT_FROM_EMAIL = 'Django Admin <djangoadmin@mlke.net>'
EMAIL_HOST = '69.64.92.150'

REQUIRE_EMAIL_CONFIRMATION = True
ACCOUNT_ACTIVATION_DAYS = 7

GRAPPELLI_ADMIN_HEADLINE=gettext("A115 Admin Panel")
GRAPPELLI_ADMIN_TITLE=gettext("A115 Admin Panel")

from django.template.loader import add_to_builtins
add_to_builtins('django.templatetags.i18n')
